<script>
import Loading from './components/loading/index.vue'
export default {
	components: {
		Loading
	},
	data() {
		return {
			isLoading: false,
			// showTabBar: false
		}
	},
	onShow: function() {
		console.log('App Show')
		// this.isLoading = true
		setTimeout(() => {
			this.isLoading = false
		}, 500)
	},
	onHide: function() {
		console.log('App Hide')
	}
}
</script>

<template>
	<view>
		<Loading :visible="isLoading" />
		<view class="content">
			<slot></slot>
		</view>
	</view>
</template>

<style>
	/*每个页面公共css */
	.content {
		min-height: 100vh;
		background-color: #f5f5f5;
	}
</style>
